% demo2

% 柱状图高度及颜色
Y=[3.5,.5,3.4,3.3,3.2];
CList=[227,198,153
247,242,159
113,172,173
163,196,230
192,192,192]./255;

% 绘制柱状图
bHdl=bar(Y,'LineWidth',1,'BarWidth',.7);
bHdl.FaceColor='flat';
for i=1:length(Y)
    bHdl.CData(i,:)=CList(i,:);
end

% 绘制误差棒
err=[.3,1.2,.5,.2,.45]; 
errorbarT(1:5,Y,err);

% 坐标区域基础修饰
ax=gca;
hold on
ax.LineWidth=1;
ax.YLim=[0,4];
ax.XLim=[.2,5.8];
ax.TickLength=[0,0];
ax.DataAspectRatio=[1,1,1];
ax.FontName='Cambria';
ax.FontSize=14;
ax.YLabel.String='Current(\muA)';
ax.XTickLabel={'black','pink','lysozyme','hoGG1','Endo IV'};